package com.ftg.learn.chapter08;

import lombok.Data;

/**
 * 学生信息pojo
 * Pojo : 最简单的java类
 *
 * @author kangjx
 * @date 2023/1/3
 */
@Data
public class Student {

    private String name;

    private char sex;

    private int age;

    /**
     * 在一全对象里面有另外一个对象
     */
    private Clazz clazz;

    public Clazz getClazz() {
        return clazz;
    }

    public void setClazz(Clazz clazz) {
        this.clazz = clazz;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
